﻿@model List<RTW.Models.TMsg>
<div class="ibox float-e-margins">
    <div class="ibox-title" style="position: relative;">
        <h5>最近动态</h5>
        <a class="btn btn-danger btn-sm btn-outline" style="float: right; margin-bottom: 0px; margin-top: -7px; margin-right: -7px;" onclick="SetLookAll()"><i class="fa fa-bell-slash-o"></i>&nbsp;全部标为已读</a>
    </div>
    <div class="ibox-content" style="min-height: 400px;">
        <div class="feed-activity-list">
            @foreach (var msg in Model)
            {
                <div class="feed-element animated">
                    <a class="pull-left">
                        <img alt="image" class="img-circle img-head" src="@Url.Content("~/img"+msg.User1.Bak1)" onerror="this.src='../img/tx.png';">
                    </a>
                    &nbsp;&nbsp;<div class="media-body ">
                                    <small class="pull-right text-navy">@RTW.Web.Handler.CommHandler.DateFormatToString(Convert.ToDateTime(@msg.AddTime))</small>
                        <strong>@msg.MsgTitle</strong>.
                        <br>
                        <div class="text-muted" style="margin-top: 5px;">
                            @msg.MsgInfo 
                        </div>
                        <div class="actions" style="text-align: right;">
                            <a class="btn btn-danger btn-outline btn-xs btnAction" onclick="SetLook(this,'@msg.ID ')"><i class="fa fa-bell-slash-o"></i>&nbsp;已读</a>
                        </div>
                    </div>
                </div>
            }
            </div>
        <div id="dNoMsg" style="font-family: 'Microsoft YaHei'; font-size: 30px; color: #ddd; text-align: center; padding-top: 150px; display: none;">暂无通知</div>
    </div>
</div>